{% extends 'base.html' %}

{% load staticfiles %}

{% block title %}注册-学厨网{% endblock %}

{% block content %}
    <div class="container mycontent" style="padding-top: 80px;">
        <div class="col-lg-6 col-lg-offset-3" style="padding: 0px 40px 40px;">
            {% if msg %}
                <div class="alert alert-danger" role="alert">{{ msg }}</div>
            {% endif %}
            <div class="page-header">
                <h3>注册</h3>
            </div>
            <form action="{% url 'register' %}" method="post">
                <div class="input-group input-group-lg" style="margin-top: 20px;">
                    <span class="input-group-addon" id="basic-addon1">用户名</span>
                    {{ form.username }}
                </div>
                <div class="input-group input-group-lg" style="margin-top: 30px;">
                    <span class="input-group-addon" id="basic-addon1" style="padding-right: 19px;">邮&nbsp;&nbsp;&nbsp;箱</span>
                    {{ form.email }}
                </div>
                <div class="input-group input-group-lg" style="margin-top: 30px;">
                    <span class="input-group-addon" id="basic-addon1" style="padding-right: 19px;">密&nbsp;&nbsp;&nbsp;码</span>
                    {{ form.password }}
                </div>
                {% csrf_token %}
                <button type="submit" class="btn btn-primary btn-lg center-block"
                        style="margin-top: 30px;width: 100%;">注册
                </button>

            </form>
        </div>
    </div>

{% endblock %}